<script>
import JSONUtil from "@/utils/JSONUtil";
import {formatToDate} from "@/utils/dateUtil";

export default {
  props: {
    // 类型
    type: String,
    // 是否标签
    isTag: {
      type: Boolean,
      default: false,
      required: true,
    },
    query: {
      type: Function,
      default: () => {
        return () => {
        }
      }
    },
    user: Object
  },
  data() {
    return {
      name: ''
    }
  },
  methods: {
    relJSON() {
      JSONUtil.copy({})
    },
    relDate() {
      formatToDate()
    },
    submit() {
      this.$emit('submit')
    }
  }
}
</script>

<template>

</template>

<style scoped lang="scss">

</style>
